package com.aaa.service;

import com.aaa.entity.DictData;
import com.aaa.vo.DictDataVo;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @BelongsPackage: com.aaa.service
 * @Description:
 * @CreateTime: 2023-03-22  19:15
 * @Author: ql
 */
public interface DictDataService {
    Result<List<DictData>> findByType(String type);
    List<DictData> listType(String type);

    Result<IPage<DictData>> queryDictByPage(DictDataVo dictDataVo);
    Result<String> cacheAsync();

    Result<DictData> getDictDataById(Long id);

    Result<String> addOrUpdDictData(DictData dictData);

    Result<String> deleteDictDataByIds(Long[] id);
}
